package com.fatsatsuma.spreadsheets;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * @author $Id: DefaultImportModel.java,v 1.1 2007/06/07 17:58:02 gevans Exp $
 */
public class DefaultImportModel implements Serializable, ImportModel {

    private static final long   serialVersionUID    = 308414087554384360L;

    private List<ImportMessage> informationMessages = new ArrayList<ImportMessage>();

    private List<ImportMessage> errorMessages       = new ArrayList<ImportMessage>();

    private List<ImportMessage> warningMessages     = new ArrayList<ImportMessage>();


    /**
     * @return the errorMessages
     */
    public List<ImportMessage> getErrorMessages() {
        return this.errorMessages;
    }


    /**
     * @return the informationMessages
     */
    public List<ImportMessage> getInformationMessages() {
        return this.informationMessages;
    }


    /**
     * @return the warningMessages
     */
    public List<ImportMessage> getWarningMessages() {
        return this.warningMessages;
    }


    public void addErrorMessage( ImportMessage message ) {
        this.errorMessages.add( message );
    }


    public void addWarningMessage( ImportMessage message ) {
        this.warningMessages.add( message );
    }


    public void addInformationMessage( ImportMessage message ) {
        this.informationMessages.add( message );
    }


}
